// class 类
// readonly  只读属性
// 静态方法和属性 static 
// 静态方法和属性的调用 是有类名直接调用  不用实例化对象
var Person = /** @class */ (function () {
    function Person(name, age) {
        this.name = name;
        this.age = age;
    }
    Object.defineProperty(Person.prototype, "fullName", {
        get: function () {
            return this.name + "hello";
        },
        // set 负责 设置值 拦截到最新的值
        set: function (val) {
            this.name = val;
        },
        enumerable: false,
        configurable: true
    });
    Person.prototype.say = function () {
        console.log("老色批");
    };
    Person.run = function () {
        console.log("昨天跑了三公里");
    };
    Person.hobby = ["唱", "跳", "篮球"];
    return Person;
}());
var dehua = new Person("刘德华", 55);
console.log(dehua.name);
dehua.fullName = "四大天王 刘德华";
console.log(dehua.fullName);
dehua.say();
Person.run();
console.log(Person.hobby);
